package com.jxc.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Order entity. @author MyEclipse Persistence Tools
 */

public class Order implements java.io.Serializable {

	// Fields

	private Integer id;
	private User user;
	private Inquiry inquiry;
	private String sn;
	private Date ordertime;
	private Double totalprice;
	private String transport;
	private String payment;
	private String invoice;
	private String address;
	private String state;
	private Set orderlists = new HashSet(0);
	private Set tracs = new HashSet(0);
	private Set libraries = new HashSet(0);
	private Set purchases = new HashSet(0);

	// Constructors

	/** default constructor */
	public Order() {
	}

	/** full constructor */
	public Order(User user, Inquiry inquiry, String sn, Date ordertime,
			Double totalprice, String transport, String payment,
			String invoice, String address, String state, Set orderlists,
			Set tracs, Set libraries, Set purchases) {
		this.user = user;
		this.inquiry = inquiry;
		this.sn = sn;
		this.ordertime = ordertime;
		this.totalprice = totalprice;
		this.transport = transport;
		this.payment = payment;
		this.invoice = invoice;
		this.address = address;
		this.state = state;
		this.orderlists = orderlists;
		this.tracs = tracs;
		this.libraries = libraries;
		this.purchases = purchases;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Inquiry getInquiry() {
		return this.inquiry;
	}

	public void setInquiry(Inquiry inquiry) {
		this.inquiry = inquiry;
	}

	public String getSn() {
		return this.sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public Date getOrdertime() {
		return this.ordertime;
	}

	public void setOrdertime(Date ordertime) {
		this.ordertime = ordertime;
	}

	public Double getTotalprice() {
		return this.totalprice;
	}

	public void setTotalprice(Double totalprice) {
		this.totalprice = totalprice;
	}

	public String getTransport() {
		return this.transport;
	}

	public void setTransport(String transport) {
		this.transport = transport;
	}

	public String getPayment() {
		return this.payment;
	}

	public void setPayment(String payment) {
		this.payment = payment;
	}

	public String getInvoice() {
		return this.invoice;
	}

	public void setInvoice(String invoice) {
		this.invoice = invoice;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Set getOrderlists() {
		return this.orderlists;
	}

	public void setOrderlists(Set orderlists) {
		this.orderlists = orderlists;
	}

	public Set getTracs() {
		return this.tracs;
	}

	public void setTracs(Set tracs) {
		this.tracs = tracs;
	}

	public Set getLibraries() {
		return this.libraries;
	}

	public void setLibraries(Set libraries) {
		this.libraries = libraries;
	}

	public Set getPurchases() {
		return this.purchases;
	}

	public void setPurchases(Set purchases) {
		this.purchases = purchases;
	}

}